package d0330;

public class Bank {
    private String name;
    private  int money;

    public Bank(String name, int money) {
        this.name = name;
        this.money = money;

    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getMoney() {
        return money;
    }

    public void setMoney(int money) {
        this.money = money;
    }
    public String toString() {
        return
                ", 姓名：" + name  +
                ", 消费金额：" + money ;
    }
}
